package io.github.talelin.sleeve.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;
/**
 * @Description:对应数据库的表
 */
@Getter
@Setter
@TableName("banner")
public class Banner {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String name;
    private String title;
    private String description;
    private String img;
    @JsonIgnore
    private Date createTime;
    @JsonIgnore
    private Date updateTime;
    @JsonIgnore
    @TableLogic //软删除
    private Date deleteTime;
}
